package com.summer.user.center.api;

import com.summer.user.center.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashSet;

@FeignClient(name = "user-center-server")
public interface UserService {

    @RequestMapping(value = "/userCenter/test", method = RequestMethod.GET)
    String test();

    @RequestMapping("/user/findUserByUsername")
    User findUserByUsername(@RequestParam("username") String username);

    @RequestMapping("/user/findResourceByUsername")
    HashSet<String> findResourceByUsername(@RequestParam("username") String username);
}
